<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: header/WeaponHUD.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_weapon_h_u_d_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">WeaponHUD.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_weapon_h_u_d_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;osg/Camera&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;osg/MatrixTransform&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;osg/PositionAttitudeTransform&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;osgGA/GUIEventHandler&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;osg/Switch&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">using namespace </span>osg;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span>brtr {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;  </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="classbrtr_1_1_weapon_h_u_d.html">WeaponHUD</a> : <span class="keyword">public</span> Camera {</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html">   32</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html">WeaponSwitchHandler</a> : <span class="keyword">public</span> osgGA::GUIEventHandler {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html">WeaponSwitchHandler</a>(Switch* switchNode);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> handle(<span class="keyword">const</span> osgGA::GUIEventAdapter&amp; ea, osgGA::GUIActionAdapter&amp; aa);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a22b7a9e8884ac0c4a63979d6d441e58f">   49</a></span>&#160;        <a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a22b7a9e8884ac0c4a63979d6d441e58f">~WeaponSwitchHandler</a>() {}</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#af4b40e431f9cbcaddf843578316bb9c4">   51</a></span>&#160;        ref_ptr&lt;Switch&gt; <a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#af4b40e431f9cbcaddf843578316bb9c4">_switch</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a15b23d25cb1847f558493adc2a97311e">   52</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a15b23d25cb1847f558493adc2a97311e">_curWeapon</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#abfa6e6c2904d1e6ed7cd5d029a632ddf">   53</a></span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#abfa6e6c2904d1e6ed7cd5d029a632ddf">_frameNumber</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    };</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="classbrtr_1_1_weapon_h_u_d.html">WeaponHUD</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="classbrtr_1_1_weapon_h_u_d.html">WeaponHUD</a>(<span class="keyword">const</span> <a class="code" href="classbrtr_1_1_weapon_h_u_d.html">WeaponHUD</a>&amp;,<span class="keyword">const</span> CopyOp&amp; copyop=CopyOp::SHALLOW_COPY);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    ref_ptr&lt;WeaponSwitchHandler&gt; getWeaponHandler();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> addPortalGun();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    ~<a class="code" href="classbrtr_1_1_weapon_h_u_d.html">WeaponHUD</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">void</span> createWeaponHUD();</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d.html#a32d5e498c15faa87f3bcfa83ca6c5b0e">   72</a></span>&#160;    ref_ptr&lt;Switch&gt; <a class="code" href="classbrtr_1_1_weapon_h_u_d.html#a32d5e498c15faa87f3bcfa83ca6c5b0e">_switcher</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classbrtr_1_1_weapon_h_u_d.html#a4ebf9d9e600e3a6b9f5d8601c084ee51">   73</a></span>&#160;    ref_ptr&lt;WeaponSwitchHandler&gt; <a class="code" href="classbrtr_1_1_weapon_h_u_d.html#a4ebf9d9e600e3a6b9f5d8601c084ee51">_handler</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;};</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}</div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler_html_abfa6e6c2904d1e6ed7cd5d029a632ddf"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#abfa6e6c2904d1e6ed7cd5d029a632ddf">brtr::WeaponHUD::WeaponSwitchHandler::_frameNumber</a></div><div class="ttdeci">unsigned int _frameNumber</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00053">WeaponHUD.h:53</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler_html_af4b40e431f9cbcaddf843578316bb9c4"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#af4b40e431f9cbcaddf843578316bb9c4">brtr::WeaponHUD::WeaponSwitchHandler::_switch</a></div><div class="ttdeci">ref_ptr&lt; Switch &gt; _switch</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00051">WeaponHUD.h:51</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler_html_a22b7a9e8884ac0c4a63979d6d441e58f"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a22b7a9e8884ac0c4a63979d6d441e58f">brtr::WeaponHUD::WeaponSwitchHandler::~WeaponSwitchHandler</a></div><div class="ttdeci">~WeaponSwitchHandler()</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00049">WeaponHUD.h:49</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_html_a32d5e498c15faa87f3bcfa83ca6c5b0e"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d.html#a32d5e498c15faa87f3bcfa83ca6c5b0e">brtr::WeaponHUD::_switcher</a></div><div class="ttdeci">ref_ptr&lt; Switch &gt; _switcher</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00072">WeaponHUD.h:72</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_html_a4ebf9d9e600e3a6b9f5d8601c084ee51"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d.html#a4ebf9d9e600e3a6b9f5d8601c084ee51">brtr::WeaponHUD::_handler</a></div><div class="ttdeci">ref_ptr&lt; WeaponSwitchHandler &gt; _handler</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00073">WeaponHUD.h:73</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler_html"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html">brtr::WeaponHUD::WeaponSwitchHandler</a></div><div class="ttdoc">EventHandler for WeaponSwitching. </div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00032">WeaponHUD.h:32</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_html"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d.html">brtr::WeaponHUD</a></div><div class="ttdoc">WeaponHUD class, provides the functions to add a HUD camera to the scene. </div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00023">WeaponHUD.h:23</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler_html_a15b23d25cb1847f558493adc2a97311e"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d_1_1_weapon_switch_handler.html#a15b23d25cb1847f558493adc2a97311e">brtr::WeaponHUD::WeaponSwitchHandler::_curWeapon</a></div><div class="ttdeci">int _curWeapon</div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00052">WeaponHUD.h:52</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_1ec98ce50fa6ec55b40b8ffb1df38c3c.html">header</a></li><li class="navelem"><a class="el" href="_weapon_h_u_d_8h.html">WeaponHUD.h</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
